KissAi\KissAi_DB D

Total Complexity 201
Dependencies 10
Dependents 6
Total lines 1,692
Lines of code 1,186
Logical lines of code 582
Comment lines 333
Methods 51
Properties 1

Methods 51

Method Rating Maintainability Complexity Lines of code
save_suggested_questions()
B
40 18 59
import_assistant()
B
34 13 108
save_message()
A
40 15 56
export_assistant()
A
37 9 77
get_threads_list_where_clause_params()
A
49 8 31
get_threads_list_where_clause()
A
51 8 24
get_suggested_questions()
A
49 7 31
handle_db_update()
S
58 8 13
create_plugin_database_tables()
S
39 2 100
rrmdir()
S
58 7 15
get_event_data()
S
51 6 26
update_all_messages_assistant_ids()
S
48 5 34
update_db_notice()
S
54 6 18
match_thread_assistant_id()
S
50 5 30
match_message_assistant_id()
S
50 5 29
update_db()
S
52 5 24
update_knowledge_path()
S
49 4 35
update_knowledge_file_id()
S
49 4 35
store_event_data()
S
53 4 22
update_all_thread_assistant_ids()
S
58 4 16
save_assistant_setting()
S
51 3 30
reset_plugin_database_tables()
S
55 3 20
save_assistant()
S
58 3 15
add_knowledge()
S
53 2 26
read_threads_list()
S
52 2 24
update_all_message_repeated()
S
55 2 21
update_thread_assistant_id()
S
57 2 18
get_session_id_with_nonce()
S
57 2 17
is_existing_message()
S
59 2 16
get_existing_message()
S
60 2 15
get_current_api_key_type()
S
66 3 8
remove_event_data()
S
59 2 14
update_assistant_knowledge_count()
S
60 2 14
get_event_max_seq()
S
60 2 13
get_event_count()
S
60 2 13
delete_nonce()
S
60 2 13
get_knowledge_file_path_by_file_id()
S
62 2 11
is_db_up_to_date()
S
69 2 7
api_log()
S
58 1 15
check_db_version()
S
72 2 5
get_assistant_knowledge_count()
S
65 2 9
find_knowledge_id_by_assistant_and_name()
S
63 2 10
delete_assistant()
S
64 2 10
cached_get_row()
S
64 2 9
convert_export_assistant_path_to_url()
S
71 1 5
get_assistant_setting()
S
65 1 9
update_all_messages_api_server()
S
69 1 6
update_success_notice()
S
75 1 8
count_threads_list_items()
S
64 1 9
update_token_count()
S
64 1 10
__construct()
S
80 1 3